<template>
  <view class="good-list">
    <uni-list class="iconList">
      <uni-list-item
        v-for="(item, index) in list"
        :key="index"
        :title="item.title"
        clickable
        style="width: 100%"
        @click="clickItem(item)"
      >
        <view slot="body" class="lz-list-body">
          <view class="lz-list-title lz-ellipsis-1">{{ item.title }}</view>
          <view class="lz-list-item lz-ellipsis-1">
            {{$t('发起方')}}：{{ item.originateUser }}【{{ item.originateEnterprise }}】
          </view>
          <view class="lz-list-item lz-ellipsis-1">{{$t('待处理')}}：{{ item.enterpriseName }}</view>
          <view class="lz-list-item lz-ellipsis-3">
            {{$t('签署方')}}：
            <u-tag
              v-for="(item2, index2) in item.liaisonSignContentList"
              :key="index2"
              :text="item2.name"
              class="u-tag"
              mode="dark"
              size="mini"
              type="info"
            />
          </view>
        </view>
        <view slot="footer" class="lz-list-footer">
          <u-tag mode="dark" size="mini" :text="$t('加盖电子章')" type="primary" />
        </view>
      </uni-list-item>
    </uni-list>
  </view>
</template>

<script>
export default {
  props: {
    list: {
      type: Array,
      default() {
        return []
      }
    },
    option: {
      //当前页面信息，从哪里点进的
      type: Object,
      default() {
        return {}
      }
    },
    titleName: {
      //当前tab名称
      type: String,
      default() {
        return ''
      }
    }
  },
  data() {
    return {}
  },
  mounted() {
  },
  methods: {
    clickItem(item) {
      this.$emit('clickItem', item)
    }
  }
}
</script>

<style lang="scss" scoped>
.good-list {
  background-color: #fff;
  width: 100%;

  .u-tag {
    margin-bottom: 5px;
    margin-right: 5px;
  }

  .iconList {
    width: 100%;
  }
}
</style>
